package com.barry.pattern;

/**
 * @author Gong
 *	模式类的基础类，实现输出模块名
 */
public  class BaseMode{
	private static String modeName;
	public BaseMode(String modeName) {
	setModeName(modeName);
	showModeName();
	}

	private void showModeName() {
		System.err.println();
		System.err.println();
		System.err.println("模式名称:"+getModeName());
		System.err.println("=======================================================");
		System.err.println();
	}

	public static String getModeName() {
		return modeName;
	}

	public static void setModeName(String modeName) {
		BaseMode.modeName = modeName;
	}

}
